<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1" />
    <meta name="author" content="FamousThemes" />
    <meta name="description" content="Get in the spotlight" />
    <meta name="keywords" content="premium css templates, premium wordpress themes, famous themes, themeforest" />
    <title>Power Gym | Responsive Fitness Club Template</title>
    <link REL="SHORTCUT ICON" HREF="<?php echo $webb ?>../images/logo.ico" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php echo $webb?>/css/style.css" />
    <link rel="stylesheet" href="<?php echo $webb?>prettyphoto/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
    <link href="http://fonts.googleapis.com/css?family=Terminal+Dosis" rel="stylesheet" type="text/css" />
    <!-- jQuery -->
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <script type="text/javascript" src="<?php echo $webb?>/js/settings.js"></script>
    <script type="text/javascript" src="<?php echo $webb?>/js/helper.js"></script>
    <script type="text/javascript" src="<?php echo $webb?>/js/main.js"></script>
    <!-- Twitter Feed -->
    <script type="text/javascript" src="<?php echo $webb?>/js/jquery.tweet.js" charset="utf-8"></script>
    <!-- FlexSlider -->
    <script type="text/javascript" src="<?php echo $webb?>/js/jquery.flexslider-min.js"></script>
    <!-- PrettyPhoto -->
    <script src="<?php echo $webb?>/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo $webb?>/js/custom.quicksand.js"></script>
    <!-- DropDownMenu -->
    <script type="text/javascript" src="<?php echo $webb?>/js/menu.js"></script>
    <!-- Responsive Carousel -->
    <script type="text/javascript" src="<?php echo $webb?>/js/jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="<?php echo $webb?>/js/jquery.elastislide.js"></script>
    <script type="text/javascript" charset="utf-8">

        var $ = jQuery.noConflict();
        $(window).load(function() {
            $('.flexslider').flexslider({
                animation: "slide"
            });

            $(function() {
                $('.show_menu').click(function(){
                    $('.menu').fadeIn();
                    $('.show_menu').fadeOut();
                    $('.hide_menu').fadeIn();
                });
                $('.hide_menu').click(function(){
                    $('.menu').fadeOut();
                    $('.show_menu').fadeIn();
                    $('.hide_menu').fadeOut();
                });
            });


        });

        jQuery(function($){
            $(".tweet").tweet({
                join_text: "auto",
                username: "famousthemes",
                count: 2,
                auto_join_text_default: "we said,",
                auto_join_text_ed: "we",
                auto_join_text_ing: "we were",
                auto_join_text_reply: "we replied",
                auto_join_text_url: "we were checking out",
                loading_text: "loading tweets..."
            });
        });
    </script>
</head>
<body>
<div id="main_container">

    <a class="show_menu" href="#">menu</a>
    <a class="hide_menu" href="#">close menu</a>

    <div id="header">
        <div class="logo"><a href="index.php"><img src="<?php echo $webb?>/css/images/logo.png" alt="logo" title="logo" class="logo_image" /></a><h1><a href="index.php">Power Gym</a></h1></div>

        <div class="menu">
            <?php 
            function display_children($parent, $level) {
                $result = mysql_query("SELECT a.id, a.label, a.link, Deriv1.Count FROM `menu` a  LEFT OUTER JOIN (SELECT parent, COUNT(*) AS Count FROM `menu` GROUP BY parent) Deriv1 ON a.id = Deriv1.parent WHERE a.parent=" . $parent);
                echo "<ul id='main_menu'>";
                while ($row = mysql_fetch_assoc($result)) {
                    if ($row['Count'] > 0) {
                        echo "<li><a href='" . $row['link'] . "'>" . $row['label'] . "</a>";
                        display_children($row['id'], $level + 1);
                        echo "</li>";
                    } elseif ($row['Count']==0) {
                        echo "<li><a href='" . $row['link'] . "'>" . $row['label'] . "</a></li>";
                    } else;
                }
                echo "</ul>";
            }
            display_children(0, 1);

            /* ******************************* */
            ?>
            <!--<ul id="main_menu">
                <li class="selected"><a href="index.php">home</a></li>
                <li><a href="page.php">the club</a>
                    <ul>
                        <li><a href="page.php">services</a></li>
                        <li><a href="gallery.php">photo gallery</a></li>
                        <li><a href="videos.php">videos</a></li>
                    </ul>
                </li>
                <li><a href="program.php">program</a></li>
                <li><a href="trainers.php">trainers</a></li>
                <li><a href="blog.php">news</a></li>
                <li><a href="contact.php">contact</a></li>
            </ul>-->
        </div>

    </div><!-- End of Header-->
    <!-- 
        hidden input check if live or local
    -->
    <input type="hidden" id="webbPath" value="<?php echo $webb?>" />